package com.loan.repository;

import com.loan.entity.Banner;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


/**
 * Created by huxudong on 17/7/1.
 */
public interface BannerRepository extends JpaRepository<Banner,Long> {

     List<Banner> findByFlagOrderBySort(Integer flag);

     List<Banner> findByTabAndFlagOrderBySort(Integer tab , Integer flag);
}
